/**
 * 
 */
package org.rk.core.common.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author Cavion(曹仁道)
 * @类描述：响应消息
 * 2016年11月15日
 */
public class JsonMsg implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public static final String status_200="200";
	public static final String status_404="404";
	public static final String status_302="302";
	public static final String status_500="500";
	
	private String statusCode;//状态码
	private String msg;
	private String succUrl;//成功返回页面需要跳转的url
	private Map<String,Object> data;//响应内容
	private List<Map<String,Object>> dataList;//响应集合内容
	
	public JsonMsg(){}
	public JsonMsg(String msg,String statusCode){
		this.msg=msg;
		this.statusCode=statusCode;
	}
	public JsonMsg(Map<String,Object> data,String statusCode){
		this.data=data;
		this.statusCode=statusCode;
	}
	public JsonMsg(String msg,Map<String,Object> data,String statusCode){
		this.msg=msg;
		this.data=data;
		this.statusCode=statusCode;
	}
	public JsonMsg(String succUrl){
		this.succUrl=succUrl;
	}
	public String getStatusCode() {
		return statusCode;
	}
	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Map<String, Object> getData() {
		return data;
	}
	public void setData(Map<String, Object> data) {
		this.data = data;
	}
	public String getSuccUrl() {
		return succUrl;
	}
	public void setSuccUrl(String succUrl) {
		this.succUrl = succUrl;
	}
	public List<Map<String, Object>> getDataList() {
		return dataList;
	}
	public void setDataList(List<Map<String, Object>> dataList) {
		this.dataList = dataList;
	}
	public String toString(){
		return "{statusCode:'"+statusCode+"',msg:'"+msg+"',succUrl:'"+succUrl+"'}";
	}

}
